<template>
    <h1>{{ title }}</h1>
</template>

<script>
import store from "./store";

export default {
    data(){
        return {
            title:''
        }
    },
    mounted(){
        store.subscribe((value)=>{
            console.log(value);
            this.title = value;
        });
    }
};
</script>